package ${escapeKotlinIdentifiers(packageName)}

import android.os.Bundle
<#if applicationPackage??>
import ${applicationPackage}.R
</#if>
import com.zxn.presenter.view.BaseFragment

private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"

/**
 *
 *  Created by zxn on ${.now}.
 */
class ${fragmentClass} : BaseFragment<Nothing>() {

    private var param1: String? = null
    private var param2: String? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        arguments?.let {
            param1 = it.getString(ARG_PARAM1)
            param2 = it.getString(ARG_PARAM2)
        }
    }


    companion object {
        @JvmStatic
        fun newInstance() = ${fragmentClass}()
        
        @JvmStatic fun newInstance(param1: String, param2: String) =
                ${fragmentClass}().apply {
                    arguments = Bundle().apply {
                        putString(ARG_PARAM1, param1)
                        putString(ARG_PARAM2, param2)
                    }
                }
    }

    override fun getLayoutResId(): Int = R.layout.${fragmentName}
}
